package edu.stu.book.book.keeping.db.dao

import edu.stu.book.book.keeping.R

sealed class CostType(
    val id: Int
) {
    data class Restaurant(val icon: Int = R.drawable.ic_restaurant_48, val text: String = "餐饮") :
        CostType(1)

    data class DayUse(val icon: Int = R.drawable.ic_day_user_48, val text: String = "日用品") :
        CostType(2)

    data class Shop(val icon: Int = R.drawable.ic_shop_48, val text: String = "购物") : CostType(3)

    data class Bus(val icon: Int = R.drawable.ic_bus_48, val text: String = "交通") : CostType(4)

    data class Vegetable(val icon: Int = R.drawable.ic_vegetable_48, val text: String = "蔬菜") :
        CostType(5)

    data class Fruits(val icon: Int = R.drawable.ic_fruits_48, val text: String = "水果") :
        CostType(6)

    data class Snacks(val icon: Int = R.drawable.ic_snacks_48, val text: String = "零食") :
        CostType(7)

    data class Motion(val icon: Int = R.drawable.ic_motion_48, val text: String = "运动") :
        CostType(7)

    data class Play(val icon: Int = R.drawable.ic_play_48, val text: String = "娱乐") :
        CostType(8)

    data class FavorType(val icon: Int = R.drawable.ic_favor_48, val text: String = "亲友") :
        CostType(9)
}

val costTypes = listOf(
    CostType.Restaurant(),
    CostType.DayUse(),
    CostType.Shop(),
    CostType.Bus(),
    CostType.Vegetable(),
    CostType.Fruits(),
    CostType.Snacks(),
    CostType.Motion(),
    CostType.Play(),
    CostType.FavorType()
)

